package com.kwedding.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.kwedding.dto.app.RequestLogin;
import com.kwedding.dto.app.RequestStyleSimple;
import com.kwedding.dto.app.ResponseAccountInfo;
import com.kwedding.dto.app.ResponseStyleSimple;
import com.kwedding.service.app.StyleService;
import com.kwedding.util.BackJson;
import com.kwedding.util.JsonBackBase;
import com.kwedding.util.LoggerParent;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Controller
@RequestMapping("/rest/style")
@Api(tags = "风格")
public class StyleController extends LoggerParent {

	@Autowired
	private StyleService styleService;

	@ApiOperation("获取风格列表")
	@ResponseBody
	@RequestMapping(value = "getBrandStyle", method = { RequestMethod.POST })
	private JsonBackBase<List<ResponseStyleSimple>> getBrandStyle(@RequestBody RequestStyleSimple styleSimple) {
		return BackJson.successObj(styleService.getBrandStyle(styleSimple));
	}
}
